import {defineStore} from 'pinia'

export const useUserStore=defineStore('user',{
    state(){
        return{
            user:{
                username:'张三丰',
                age:120,
                job:'掌门'
            }
        }
    },
    actions:{
        modifyUserInfo(username:string,age:number,job:string){
            this.user.username=username
            this.user.age=age
            this.user.job=job
        }
    }
})